<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/WEB-TAG/platForm.tld" prefix="PF"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<PF:basePath/>">
		<title>工程</title>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<jsp:include page="/WEB-FACE/conf/includeH.jsp"></jsp:include>
	</head>
	<body class="easyui-layout">
		<div data-options="region:'west',split:true,border:false"
			style="width: 300px;">
			<div class="TREE_COMMON_BOX_SPLIT_DIV">
				<a id="a_tree_reload" href="javascript:void(0)"
					class="easyui-linkbutton" data-options="plain:true"
					iconCls="icon-reload">刷新菜单</a>
				<a id="a_tree_openAll" href="javascript:void(0)"
					class="easyui-linkbutton" data-options="plain:true"
					iconCls="icon-sitemap">全部展开</a>
			</div>
			<ul id="tt"></ul>
		</div>
		<div id="centerBodyId" data-options="region:'center',border:false">

		</div>
	</body>
	<script type="text/javascript">
	$(function() {
		$('#tt').tree(
				{
					url : 'admin/FarmCodeGuideTreeNode.do',
					onSelect : function(node) {
						$('#centerBodyId').text("Loading...");
						$('#centerBodyId').load(
								'admin/FarmCodeGuideshow.do', {
									ids : node.id
								});
					}
				});
		$('#a_tree_reload').bind('click', function() {
			$('#tt').tree('reload');
		});
		$('#a_tree_openAll').bind('click', function() {
			$('#tt').tree('expandAll');
		});
	});
</script>
</html>